
crumb :dashboard_orders do
  link "我的订单", dashboard_orders_path
end

crumb :dashboard_addresses do
  link "我的收货地址", dashboard_addresses_path
end

crumb :dashboard_invoices do
  link "发票管理", dashboard_invoices_path
end

crumb :dashboard_designer do
  link "设计师资料", dashboard_designers_path
end

crumb :dashboard_design_cases do
  link "设计案例", dashboard_design_cases_path
end

crumb :dashoard_order do |order|
  link "订单：#{order.order_no}"
  parent :dashboard_orders
end

crumb :index do
  link "首页", root_path
end

crumb :products do
  link "商品列表", products_path
  parent :index
end

crumb :product do |product|
  link product.title
  parent :products
end

crumb :wikis do
  link "门窗百科", wiki_index_path
  parent :index
end

crumb :design_promotions do
  link "设计师活动", design_promotions_path
  parent :index
end

crumb :design_promotion do |promotion|
  link promotion.title
  parent :design_promotions
end

crumb :wiki do |wiki|
  link wiki.title
  parent :wikis
end
